const mongoose = require('../db/conn');

var UserSchema = mongoose.Schema({
    // 手机号
    mobile: {
        type: String,
        // 用户名唯一
        unique: true,
        require: true
    },
    // 密码
    password: {
        type: String,
        require: true
    },
    // 创建时间
    createTime: {
        type: Date,
        require: false,
        default: Date.now
    }
});

module.exports = UserSchema;

